#include "thread_pool.h"
int init_thread_pool_info(thread_pool_info_t * pthread_pool,int init_woker_num,my_stack*stacks,int *fd_to_index){
    init_netfd_queue(&pthread_pool->netfd_queue);//初始化连接队列
    init_worker_info(&pthread_pool->worker_info,init_woker_num);//初始化worker线程信息
    pthread_cond_init(&pthread_pool->cond,NULL);
    pthread_mutex_init(&pthread_pool->mutex,NULL);
    pthread_pool->exit_flag=0;
    pthread_pool->dirStackArr=stacks;
    pthread_pool->fd_to_index=fd_to_index;
    return 0;
}
